/*    */ package com.wgcloud.util;
/*    */ 
/*    */ import org.apache.commons.lang3.StringUtils;
/*    */ import org.slf4j.Logger;
/*    */ import org.slf4j.LoggerFactory;
/*    */ 
/*    */ public class ExecUtil
/*    */ {
/*  9 */   private static final Logger logger = LoggerFactory.getLogger(com.wgcloud.util.ExecUtil.class);
/*    */ 
/*    */   
/*    */   public static void runScript(String path, String content) {
/* 13 */     if (StringUtils.isEmpty(path)) {
/*    */       return;
/*    */     }
/*    */     try {
/* 17 */       Process process = Runtime.getRuntime().exec(path + " \"" + content + "\"");
/*    */ 
/*    */ 
/*    */ 
/*    */     
/*    */     }
/* 23 */     catch (Exception e) {
/* 24 */       logger.error("执行告警脚本错误：", e);
/*    */     } 
/*    */   }
/*    */ }


/* Location:              /Users/zhangyongxin/soft-install/wgcloud/wgcloud-v3.3.5/server/bank/wgcloud-server-release.jar!/BOOT-INF/classes/com/wgcloud/util/ExecUtil.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */